import request from '@/utils/request'
// 获取床位的tree列表
export function getDormitorytree() {
  return request({
    url: '/business/dormitory/getDormitorytree',
    method: 'get'
  })
}

// 获取楼栋名称列表
export function getbuildingName() {
  return request({
    url: '/business/dormitory/getbuildingName',
    method: 'get'
  })
}


// 获取宿舍到楼层Tree
export function getDormitoryFloortree() {
  return request({
    url: '/business/dormitory/getDormitoryFloortree',
    method: 'get'
  })
}

// 根据楼栋名称和楼层获取所有房间
export function getroomNameList(query) {
  return request({
    url: '/business/dormitory/getroomName',
    method: 'get',
	  params: query
  })
}
